<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>旅游网站管理后台</title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
    <script src="js/respond.js"></script>
    <script src="js/admin.js"></script>
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link href="/favicon.ico" rel="bookmark icon" />
    
    <script language="javascript" type="text/javascript">

function checkform()
{
	 
	

	if (document.getElementById('password1id').value=="")
	{
		alert("原密码不能为空");
		return false;
	}
	if (document.getElementById('password2id').value=="")
	{
		alert("新密码不能为空");
		return false;
	}
	
	if (document.getElementById('password2id').value.length<6)
	{
		alert("新密码长度必须大于6位");
		return false;
	}
	if (document.getElementById('password2id').value != document.getElementById('password3id').value)
	{
		alert("新密码与新密码确认不一致");
		return false;
	}	 
	return true;
	
}


</script>
    
</head>

<body>





<%@ include file="menu.jsp" %>

<div class="admin">

    <div class="tab">
      <div class="tab-head">
        <strong>修改密码</strong>
        
      </div>
      <div class="tab-body">
        <br />
        <div class="tab-panel active" id="tab-set">
        	<form method="post" class="form-x" action="password2.do" onsubmit="return checkform()">
        	
                <div class="form-group">
                    <div class="label"><label for="readme">原密码:</label></div>
                    <div class="field">
                    
                    	<input type="password" class="input" name="password1" id="password1id" size="35"  />
                           
                    	
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="label"><label for="readme">新密码:</label></div>
                    <div class="field">
                    
                    	<input type="password" class="input" name="password2" id="password2id"  size="35"  />
                           
                    	
                    </div>
                </div>
                
                <div class="form-group">
                    <div class="label"><label for="readme">确认新密码:</label></div>
                    <div class="field">
                    
                    	<input type="password" class="input" name="password3" id="password3id" size="35"  />
                           
                    	
                    </div>
                </div>
                
                
                
                <div class="form-button"><button class="button bg-main" type="submit">提交</button>
                
                <button class="button bg-main" type="reset"  onclick="javascript:history.go(-1);" >重置</button>
                </div>
            </form>
        </div>
       
      </div>
    </div>
    
</div>


</body>
</html>
